<template>
	<view class="bg">
		<view class="task_one" v-for="(item,index) in dataArr" :key='index' @click="jump(item)">
			{{item.title}}
		</view>
	</view>
</template>

<script>
	import {
		nodeList
	} from "@/request/zdxm.js"
	export default {
		data() {
			return {
				dataArr: []
			}
		},
		onLoad() {
			this.nodeList()
		},
		methods: {
			nodeList() {
				nodeList()
					.then((res) => {
						this.dataArr = res.data.result
					})
			},
			jump(x) {
				uni.navigateTo({
					url: './details?item=' + JSON.stringify(x)
				});
			}
		}
	}
</script>

<style>
	.task_one {
		background-color: rgba(255, 255, 255, 1);
		padding: 24rpx;
		position: relative;
		margin-bottom: 40rpx;
		box-shadow: 0px 0px 24rpx 0px rgba(48, 116, 255, 0.1);
		border-radius: 24rpx 24rpx 24rpx 24rpx;
	}
</style>
